1.1.1.5. core.StackAddressEscape (C)
Check that addresses to stack memory do not escape the function.

Examples:

char const *p;

void test() {
  char const str[] = "string";
  p = str; // warn
}

void* test() {
   return __builtin_alloca(12); // warn
}

void test() {
  static int *x;
  int y;
  x = &y; // warn
}